package com.youlai.boot.modules.country.converter;

import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.boot.modules.country.model.entity.Country;
import com.youlai.boot.modules.country.model.form.CountryForm;

/**
 * 国家数据对象转换器
 *
 * @author liuwanwei
 * @since 2025-02-26 17:48
 */
@Mapper(componentModel = "spring")
public interface CountryConverter{

    CountryForm toForm(Country entity);

    Country toEntity(CountryForm formData);
}